<?php
/**
 * Created by PhpStorm.
 * User: ly
 * Date: 2017\12\25 0025
 * Time: 10:02
 */
//['principal'=>$principal,'interest'=>$interest,'reservation'=>$reservation,'radical'=>$radical]);
?>
<div class="modal-dialog" role="document">
    <div class="modal-content">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                <span aria-hidden="true"><img src="/image/assetPackage/close.png"></span>
            </button>
            <div class="pull-left modal-nav">
                <img src="/image/assetPackage/white.png" class="pull-left">
                <span class="pull-left">计算求和</span>
            </div>
        </div>
        <div class="modal-body">
            <div class="modal-body-div-calculate">
                <div class="table-responsive">
                    <table class="table">
                        <thead>
                        <tr>
                            <th class="text-left">项目字段</th>
                            <th class="text-left">总和</th>
                        </tr>
                        </thead>
                        <tbody class="maintenance-tbody">
                        <tr>
                            <td><input type="text" value="本金"></td>
                            <td><input type="text" value="<?php echo $principal;?>"></td>
                        </tr>
                        <tr>
                            <td><input type="text" value="利息"></td>
                            <td><input type="text" value="<?php echo $interest;?>"></td>
                        </tr>
                        <tr>
                            <td><input type="text" value="本息合计"></td>
                            <td><input type="text" value="<?php echo ($principal+$interest); ?>"></td>
                        </tr>
                        <tr>
                            <td><input type="text" value="回现保守"></td>
                            <td><input type="text" value="<?php echo $reservation;?>"></td>
                        </tr>
                        <tr>
                            <td><input type="text" value="回现激进"></td>
                            <td><input type="text" value="<?php echo $radical;?>"></td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
        <div class="modal-footer">
            <button type="button" class="btn btn-primary btns-primary"
                    data-dismiss="modal">确定
            </button>
            <!--            <button type="button" class="btn btn-primary btns-primary">保存</button>-->
        </div>
    </div>
</div>
